<template>
  <div>
    <a-button @click="onClick">选择</a-button>
 
  </div>
</template>

<script setup>
import excelAPI from '@/utils/excel.js'


  const data =  [
       
        {
            "id": 36,
            "task_name": "T.吞噬星空",
            "share_id": "12461112645453",
            "share_file_id": "924341157396503273",
            "share_code": "bqUVz2zuuaEf",
            "share_mode": 5,
            "share_count": null,
            "update_time": null,
            "save_path_id": "423753157615606503",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-24T17:08:48.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": ""
        },
        {
            "id": 33,
            "task_name": "Z.镇魂街之热血再燃 (2024)",
            "share_id": "12493112637179",
            "share_file_id": "224361157337732421",
            "share_code": "Eniiqq6Rvq63",
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-24T16:51:02.000Z",
            "save_path_id": "824041157336498074",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-24T16:51:01.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": ""
        },
        {
            "id": 35,
            "task_name": "A.暗夜与黎明 (2024)",
            "share_id": "12461112619446",
            "share_file_id": "325361157088234775",
            "share_code": "qUjmmmrqInEr",
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-24T16:50:56.000Z",
            "save_path_id": "124041157423938831",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-24T16:50:55.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": ""
        },
        {
            "id": 32,
            "task_name": "半.熟.男.女（2024）",
            "share_id": "12443112603237",
            "share_file_id": "924631156831578445",
            "share_code": "yInUzijeANNj",
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-24T16:50:50.000Z",
            "save_path_id": "723761156741318084",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-24T16:50:50.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": ""
        },
        {
            "id": 34,
            "task_name": "C.从地狱来的法官（2024）",
            "share_id": "12515112634827",
            "share_file_id": "823691157159105392",
            "share_code": "imQRr2M3UnEb",
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-23T07:27:38.000Z",
            "save_path_id": "625211146958012963",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-23T07:27:38.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": ""
        },
        {
            "id": 31,
            "task_name": "D.斗破苍穹",
            "share_id": "12520112618264",
            "share_file_id": "724253153197401146",
            "share_code": "Nr63U3bYBNvm",
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-23T04:58:04.000Z",
            "save_path_id": "924273143056141485",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-23T04:58:04.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": ""
        },
        {
            "id": 30,
            "task_name": "F.凡人修仙传",
            "share_id": "12493112613428",
            "share_file_id": "324073153266304564",
            "share_code": "rMrYfaz26NJn",
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-23T04:52:09.000Z",
            "save_path_id": "125181155002716513",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-23T04:52:08.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": ""
        },
        {
            "id": 29,
            "task_name": "X.仙逆",
            "share_id": "12529112631080",
            "share_file_id": "525403153408916053",
            "share_code": "eayQBjMzEbMf",
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-23T05:14:31.000Z",
            "save_path_id": "824253152130494985",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-23T04:45:07.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": ""
        },
        {
            "id": 28,
            "task_name": "师兄啊师兄",
            "share_id": "12328112633177",
            "share_file_id": "424073153413967795",
            "share_code": "MbyINbJNfeem",
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-23T04:41:44.000Z",
            "save_path_id": "323841139616800296",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-23T04:41:44.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": ""
        },  {
            "id": 26,
            "task_name": "新>>完美世界",
            "share_id": "12490112599187",
            "share_file_id": "524603155608806897",
            "share_code": null,
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-23T03:13:59.000Z",
            "save_path_id": "324463143053460439",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-23T03:13:59.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": null
        },
        {
            "id": 27,
            "task_name": "指环王：力量之戒（2024）",
            "share_id": "12533112610758",
            "share_file_id": "124611156702316194",
            "share_code": "r6NB7rrUJ7rq",
            "share_mode": 5,
            "share_count": null,
            "update_time": "2024-09-22T16:58:02.000Z",
            "save_path_id": "424741157253484990",
            "save_path_name": null,
            "status": 1,
            "create_time": "2024-09-22T16:58:02.000Z",
            "create_id": null,
            "deleted": 0,
            "task_count": null,
            "description": "",
            "share_url": null
        }
    ]
const onClick = () => {
  excelAPI.exportToExcel(data)
};
</script>
<style lang="less" scoped></style>
